package cn.dy.sbo.core;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.common.lib.springside.orm.BaseDao;
import cn.common.lib.springside.service.EntityManager;
import cn.dy.sbo.api.PartnerDao;
import cn.dy.sbo.model.Partner;
import cn.dy.sbo.vo.DropListVO;

@Component
@Transactional
public class PartnerManager  extends EntityManager<Partner, Long>{

	@Autowired
    private PartnerDao partnerDao;
	@Override
	protected BaseDao<Partner, Long> getEntityDao() {
		return partnerDao;
	}

    public List<DropListVO> findByName(String cusName) {
        return  partnerDao.findbyName(cusName);
    }

    public List<DropListVO> findByCode(String code) {
        return  partnerDao.findByCode(code);
    }

}
